package com.springboot.ww.platform.pd.lms.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 描述：
 *
 * @author 🧑 ‍wanwei
 * @since 2024-07-18 17:51
 */
@NoArgsConstructor
@Data
public class PddCatDTO {


    @JsonProperty("result")
    private ResultDTO result;
    @JsonProperty("success")
    private Boolean success;
    @JsonProperty("requestId")
    private String requestId;
    @JsonProperty("errorCode")
    private Integer errorCode;
    @JsonProperty("errorMsg")
    private String errorMsg;

    @NoArgsConstructor
    @Data
    public static class ResultDTO {
        @JsonProperty("categoryDTOList")
        private List<CategoryDTOListDTO> categoryDTOList;

        @NoArgsConstructor
        @Data
        public static class CategoryDTOListDTO {
            @JsonProperty("catId")
            private Long catId;
            @JsonProperty("catName")
            private String catName;
            @JsonProperty("parentCatId")
            private Long parentCatId;
            @JsonProperty("catType")
            private Integer catType;
            @JsonProperty("isLeaf")
            private Boolean isLeaf;
            @JsonProperty("catLevel")
            private Integer catLevel;
            @JsonProperty("isHidden")
            private Boolean isHidden;
            @JsonProperty("hiddenType")
            private Integer hiddenType;
        }
    }
}
